{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Домашнее задание \"Линейная алгебра. Векторы\".\n",
    "\n",
    "Даны вектора x = (1,1), y = (2, 0) и z = (0,2)\n",
    "\n",
    "Надо:\n",
    "\n",
    "- Изобразить вектора на экране\n",
    "- Изобразить точку x + y + z\n",
    "- Найти угол между векторами x и y"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import matplotlib.pyplot as plt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "x = np.array([1,1])\n",
    "y = np.array([2,0])\n",
    "z = np.array([0,2])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAEICAYAAABRSj9aAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAdMklEQVR4nO3dfZQcdZ3v8feHIQhmEJTASB7cwCVHF5GnyUl02SszuysmICfoQU0Ws0f3xhwfcsU9guLDAVa9yi7rE4LGXMxhEWF0hWiECD4ws8jloiQYSICNG0OUkNyNEB6cGMTg9/5RNVBpuqere7qnkx+f1zl1pur3UPWtSuU71b/u6Z8iAjMzS9d+nQ7AzMzay4nezCxxTvRmZolzojczS5wTvZlZ4pzozcwS50RvZpY4J/qESNos6W8K21MkbZL0z52My8w6y4k+UZIOB34M3BwRH+50PGbWOU70CZJ0KPBD4OfA+wvlL5L0RUlb8+WLkl5UqH+3pI2SdkhaKWlyoS4kfSB/hfCIpEsl7VeoPyZvM5wvz0halNdNz+v2z7dn5dufzrf7JG2pOIfbJb0zX/9vkm6V9Gh+7G/m54ikywvHDE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l4xr3+6tMXB28v44ETs7XDwZ+OZ45bF95ot9bJyivu++IuCMiHss37ySbZavdxnLOHb1eFRYA17Xo2KOKiNuAHaM06cT9VTeuDt1fZa5XLR29XhXG8/7aFhF35+u/Ax4AplQ0a9s9tq8k+inAQ4XtLTz/ItVqU6ZvO+Mq+h9kv7FHBPBDSWuUTY7eKmXjep2keyT9QNKrG+zbzriQ9GJgDnB9obhd16uMTtxfjRqv+6us8b6/Suvk/SVpOnAS8LOKqrbdY6UmHtkLjMsE5U0ovW9J/WT/Ef+yUHxKRGyVdATwI0n/kT+RjEdcd5N9N8awpNOB7wIzSvZtZ1wjzgT+T0QUn87adb3K6MT9Vdo4319ldOL+akRH7i9J3WS/XD4YEU9WVlfp0pJ7bF95ot9bJygvtW9JxwNXAvMi4tGR8ojYmv/cDqwge4k2LnFFxJMRMZyvrwImSJpUpm874yqYT8XL6jZerzI6cX+V0oH7q64O3V+NGPf7S9IEsiT/zYi4oUqT9t1j7XjjodUL2SuPTcBRPPdmxKsr2pzBnm9k/Lxs3zbH9QqyuXT/oqJ8InBwYf0OYM44xvVynvuDuVnAb/Jr19Hrlbc7hGycdeJ4XK/CMaZT+83Fcb+/SsY17vdXybjG/f4qE1en7q/83K8GvjhKm7bdY/vE0E3spROUl4zrQuAw4CuSAHZH9u10PcCKvGx/4NqIuHkc4zobeK+k3cAuYH5kd1WnrxfAm4EfRsTOQve2XS8ASdeRfVJkkqQtwEXAhEJc435/lYxr3O+vknGN+/1VMi7owP0FnAIsBNZJWpuXfYzsF3Xb7zF/BYKZWeL2lTF6MzNrkhO9mVninOjNzBLnRG9mljgnejOzxDnRm5klzonezCxx/x+Tz2tGVEwZAgAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plt.scatter(x[0], x[1])\n",
    "plt.scatter(y[0], y[1])\n",
    "plt.scatter(z[0], z[1])\n",
    "plt.grid()\n",
    "plt.title('Координаты векторов x, y, z')\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXoAAAEICAYAAABRSj9aAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+j8jraAAAaJ0lEQVR4nO3df5Ac5X3n8fdHPwiKFizuEIskhIWDYqESFmJ1ghw2p8WcEa5QECp3gbOhTExUlMGGisFg7CQm8Q/FPvscn4mFErDBgWyoAjkYCwjB2iIqgyUt6AcCkdMJbEByZAJCLObEr+/90c/arWFmZ3ZmpJ19/HlVTe10P093P99u6TM9Pb07igjMzCxf40Z7AGZmtn856M3MMuegNzPLnIPezCxzDnozs8w56M3MMuegNzPLnIN+jJH0tKTTS9MzJG2X9OXRHJeZdS4H/RgmaSrwz8C9EfGp0R6PjX2SviPpI/t5G/2SFu/Pbdi+HPRjlKQpwD8Ba4FLS/N/Q9LXJe1Ij69L+o1S+x9J2ibpBUl3SZpeagtJn0jvEJ6X9BVJ40rtx6Y+g+nxpqSLU9us1DYhTS9K059P04slPVtRw5qhUJH0W5J+KOnf07ZvTTUi6ZulbYakV9Lze1J7/9A4Ktb/eUnfqbH/Fkt6K63nZUlrJc0rtZ8s6UeSdkvaWA6m8vbSuJ+RdJak6aVxvibp9dL0+1rZ/8Ptnyq1/efUZ2aanp/qmFOtfzMk/UDSxyvmbZJ0Thu38f3S/htMx+sj7Vr/rxMH/djUBdwDTAD+MPb9OxafAU4GTgDmA4uAzwJIOg34EvDfgWnAT4C+inX/HrAQOBE4G/jDUts4gIjoiogu4F+GGeOXgedGUJPS2KYDxwEzgc+l7V1W2ibA/DR95gjWX82OtM4pwMah7UmaAfwA+DzwH4ArgTv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WUmv/d9RxaaEOGHvHpJaOOibQUi3Q4nEZU0EvqYviu2uviIg9Fc1nABuA6cAJwDclHZraTomIE4EzgUslnXqgxlxLnVqWAYelfxQfBx6leHdS7QtgRv3+2CZrgQ47LhHxZkScQPFCtKj8eUJSa/931HFpoQ4Ye8eklo46JtBSLdDicRkzQa+MvqC8Xi0RsSciLkr/KC6k+MzhKYqzkpmlrkdRvIMZNS3U0nHHZUhE7Ab6gSUVTbX2f8cdF2iqjrF4TGrpyGMCTdXS8nEZE0Gfrrtn8QXljdQiaYqkg9LkxcCD6Ux5HTBb0jGp/TzgrgMx7hrjbLqWDjwuUyVNSc8nAacDWyu63QVcmO5aORl4KSJ20kHHpZU6xugxqaVjjgm0Vks7jksjXw7eCXL6gvJGajkOuEXSm8DjwEdT2xuSLgPuo7ir4KaI2HKAx1/WdC1AN511XKYBN0saT3ECdHtE3C3pEvhlLaso7ljZBvyC4l1kpx2XputgDB4TSUcC64FDgbckXUFxd82eDjom0EItFH+6uKXj4j+BYGaWuTFx6cbMzJrnoDczy5yD3swscw56M7PMOejNzDLnoDczy5yD3swsc/8fkmoY5xRZbE4AAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "v = x + y + z\n",
    "plt.scatter(v[0], v[1])\n",
    "plt.grid()\n",
    "plt.title('Координаты вектора x + y + z')\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Угол между векторами x и y: 45.00000000000001\n"
     ]
    }
   ],
   "source": [
    "# Получаем косинус угла между векторами\n",
    "v_cos = np.dot(x, y) / (np.linalg.norm(x) * np.linalg.norm(y))\n",
    "# Находим угол между векторами с помощью арккосинуса и переводим значения в градусы\n",
    "v_angle = np.degrees(np.arccos(v_cos))\n",
    "\n",
    "print('Угол между векторами x и y:', v_angle)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
